package com.example.book.controller;

import com.example.book.model.PageInfo;
import com.example.book.model.Result;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/7/29
 * Time: 15:46
 */
@RequestMapping("/TestController")
@RestController
public class TestController {
    @RequestMapping("/test1")
    public Integer test1(){
        return 1;
    }
    @RequestMapping("/test2")
    public String test2(){
        return "test2";
    }
    @RequestMapping("/test3")
    public Result test3(){
        return Result.success(new PageInfo());
    }
}
